package com.ruoyi.cs.base.sort.domain;

import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;

/**
 * 客户/供应商分类
 * cs_sort表
 * @author Drj 2021/6/28
 */
public class Sort extends BaseEntity {
    /**
     * 分类编号
     */
    @NotNull(message = "分类编号不能为空")
    @ApiModelProperty(value = "分类编号", required = true)
    private Integer sortId;
    /**
     * 父级分类编号
     */
    private Integer sortParentId;
    /**
     * 祖级编号
     */
    private String ancestors;
    /**
     * 分类名称
     */
    @NotNull(message = "分类名称不能为空")
    @ApiModelProperty(value = "分类名称", required = true)
    private String sortName;

    /**
     * 删除标志
     */
    private String deleteFlag;

    public Integer getSortId() {
        return sortId;
    }

    public void setSortId(Integer sortId) {
        this.sortId = sortId;
    }

    public Integer getSortParentId() {
        return sortParentId;
    }

    public void setSortParentId(Integer sortParentId) {
        this.sortParentId = sortParentId;
    }

    public String getAncestors() {
        return ancestors;
    }

    public void setAncestors(String ancestors) {
        this.ancestors = ancestors;
    }

    public String getSortName() {
        return sortName;
    }

    public void setSortName(String sortName) {
        this.sortName = sortName;
    }

    public String getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(String deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    @Override
    public String toString() {
        return "Sort{" +
                "sortId=" + sortId +
                ", sortParentId=" + sortParentId +
                ", ancestors='" + ancestors + '\'' +
                ", sortName='" + sortName + '\'' +
                ", deleteFlag='" + deleteFlag + '\'' +
                '}';
    }
}
